﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Info.Master" AutoEventWireup="true" CodeBehind="Info.aspx.cs" Inherits="BBPA.Admin.SYS.Goods.Info" %>

<%@ MasterType VirtualPath="~/Info.Master" %>



<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
    <script>

        $(function () {
            //$("body").width(500);
        })

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cph_main" runat="server">
    <dt>商品名称</dt>
    <dd><%=model.Name %>
        <%=(model.State==(int) EnumHelper.GoodsState.WaitCheck)?"<span class=\"WaitCheck\">待审</span>":"" %>
        <%=model.IsOffShelf?"[已下架]":""%>
    </dd>
    <dt>简称</dt>
    <dd><%=model.ShotrName %></dd>
    <dt>型号</dt>
    <dd><%=model.Code %></dd>
    <dt>规格</dt>
    <dd><%=model.Normnum %><%=model.Normtype %>每<%=model.Norm %></dd>
    <dt>分类</dt>
    <dd><%=model.CategoryName %></dd>
    <dt>品牌</dt>
    <dd><%=model.BrandName %></dd>
    <dt id="dt_SupplierName" runat="server">供货商</dt>
    <dd id="dd_SupplierName" runat="server"><%=model.SupplierName %></dd>
    <dt id="dt_BuyPrice" runat="server"><%=BBPA.Admin.Security.GetCurrentUserType() != EnumHelper.UserType.Supplier?"联盟进价":"售价" %></dt>
    <dd id="dd_BuyPrice" runat="server"><%=StringPlus.showMoney( model.BuyPrice) %>
        <span id="a_Goods_BuyPrice_Log" runat="server">
            <a href="###" href-list="/sys/Goods_BuyPrice_Log/list.aspx?GoodsID=<%=model.id %>" title="<%=model.Name %><%=BBPA.Admin.Security.GetCurrentUserType() != EnumHelper.UserType.Supplier?"联盟进价":"售价" %>历史" target="_blank">查看历史</a>
        </span>
    </dd>
    <dt id="dt_SellPrice" runat="server">联盟售价</dt>
    <dd id="dd_SellPrice" runat="server"><%=StringPlus.showMoney(model.SellPrice )%>
        <span id="a_Goods_SellPrice_Log" runat="server">
            <a href="###" href-list="/sys/Goods_SellPrice_Log/list.aspx?GoodsID=<%=model.id %>" title="<%=model.Name %>售价历史" target="_blank">查看历史</a>
        </span>
    </dd>
    <dt>建议零售价</dt>
    <dd><%=StringPlus.showMoney(model.SuggestStorePrice )%></dd>


    
        <asp:Repeater ID="rp_Discount" runat="server" OnItemDataBound="rp_Discount_ItemDataBound">
            <HeaderTemplate>
                <table class="infoTable haveBorder">
        <tr>
            <th class=" text-left">满</th>
            <th class=" text-left" id="th_DiscountBuy" runat="server"><%=isAdmin?"供货商":"" %>折扣</th>
            <th class=" text-left" id="th_DiscountSell" runat="server"><%=isAdmin?"联盟":"" %>折扣</th>
            <th class=" text-left">开始日期</th>
            <th class=" text-left">结束日期</th>
        </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr>
                    <td><%#StringPlus.showMoney(Eval("Money")) %></td>
                    <td id="td_DiscountBuy" runat="server"><%#Convert.ToDecimal( Eval("DiscountBuy"))/10 %></td>
                    <td id="td_DiscountSell" runat="server"><%#Convert.ToDecimal( Eval("DiscountSell"))/10 %></td>
                    <td><%#Convert.ToDateTime(Eval("DateFrom")).ToShortDateString() %></td>
                    <td><%#Convert.ToDateTime(Eval("DateTo")).ToShortDateString() %></td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
    

    <asp:Repeater ID="rp_GiftNumber" runat="server" OnItemDataBound="rp_GiftNumber_ItemDataBound">
        <HeaderTemplate>
            <table class="infoTable haveBorder">
                <tr>
                    <th class=" text-left">满</th>
                    <th class=" text-left" id="th_GiftNumberBuy" runat="server"><%=isAdmin?"供货商":"" %>赠送</th>
                    <th class=" text-left" id="th_GiftNumberSell" runat="server"><%=isAdmin?"联盟":"" %>赠送</th>
                    <th class=" text-left">开始日期</th>
                    <th class=" text-left">结束日期</th>
                </tr>
        </HeaderTemplate>
        <ItemTemplate>
            <tr>
                <td><%#StringPlus.showMoney(Eval("Number")) %></td>
                <td id="td_GiftNumberBuy" runat="server"><%# Eval("GiftNumberBuy") %></td>
                <td id="td_GiftNumberSell" runat="server"><%# Eval("GiftNumberSell")%></td>
                <td><%#Convert.ToDateTime(Eval("DateFrom")).ToShortDateString() %></td>
                <td><%#Convert.ToDateTime(Eval("DateTo")).ToShortDateString() %></td>
            </tr>
        </ItemTemplate>
        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>

    <ul id="ul_Pic" class="thumbnails">
        <asp:Repeater ID="rp_pic" runat="server">
            <ItemTemplate>
                <li class="span2"><a href="###" class="thumbnail">
                    <img src="<%#Eval("URL").ToString().Replace("UploadFiles","UploadFiles/_thumbs") %>" data-width="<%#Eval("Width") %>" data-height="<%#Eval("Height") %>" /></a>
                </li>
            </ItemTemplate>
        </asp:Repeater>
    </ul>
    <%=model.Description %>
</asp:Content>

